﻿#define _CRT_SECURE_NO_WARNINGS  1
//一定要动手，例子不管多么简单，建议至少自己手敲一遍看看是否理解了里头的细枝末节。
//一定要学会思考，思考为什么要这样，而不是那样。还要举一反三地思考
#include"Seq_Table.h"
int main()
{
	SeqList st;
	SeqListInit(&st);
	SeqListPushBack(&st, 1);
	SeqListPushBack(&st, 2);
	SeqListPushBack(&st, 3);
	SeqListPushBack(&st, 4);
	SeqListPushBack(&st, 5);
	SeqListPushFront(&st, 9);
	SeqListPushFront(&st, 8);
	SeqListPushFront(&st, 7);
	SeqListPushFront(&st, 6);
	SeqListPopFront(&st);
	SeqListPopFront(&st);
	SeqListPopFront(&st);
	SeqListPopBack(&st);
	int n = SeqListFind(&st, 2);
	//printf("%d \n", n);
	SeqListInsert(&st, 2, 99);
	SeqListErase(&st, 2);
	SeqListPrint(&st);
	SeqListDestroy(&st);



	return 0;
}